"""
运行client
"""
import flask

from app.authlib import init_authlib
from app.oauth import bp


def create_app():
    """

    :return:
    """
    a = flask.Flask(__name__)

    a.config.from_object('app.config.Config')

    init_authlib(a)

    a.register_blueprint(bp)

    return a


if __name__ == '__main__':
    app = create_app()
    app.run()
